import { instance } from '@/utils/request';

const getHomeStatistics = (): Promise<ResponseApiDto> => {
  return instance.get('/Statistics/GetSupplierHomeStatistics');
};

const getChartSstatistics = (timeType: string): Promise<ResponseApiDto> => {
  return instance.get('/Statistics/GetSupplierChartStatistics', { timeType });
};

export default {
  getHomeStatistics,
  getChartSstatistics,
};
